import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//tsinghua-ui
import tsinghuaUi from 'tsinghua-ui' //4.5K gzipped 1.8K
import 'tsinghua-ui/lib/tsinghua.css'
//ant-design-vue
import Antd from "ant-design-vue"
import 'ant-design-vue/dist/antd.css';
//axios
import axios from "axios";
Vue.prototype.$axios = axios

Vue.use(tsinghuaUi)
Vue.use(Antd)
Vue.config.productionTip = false


//弹框限制
import { message } from "ant-design-vue"
message.config({
  top: `10px`,
  duration: 1,
  maxCount: 1,

});

//复制
Vue.prototype.ariseastCopy = function (data) {
  debugger;
  let oInput = document.createElement("textarea");
  oInput.value = data;
  document.body.appendChild(oInput);
  oInput.select();
  document.execCommand("Copy");
  message.info('复制成功')
  oInput.remove();
};


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')